<admintpl file="header" />
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>余额明细</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('Runmenanalysis/user_purse_list')}">
        类别：
        <select class="select_2" name="utype"  style="width: 120px;" >
            <option value='1'{:I("post.utype")==1?selected:''}>用户</option>
            <option value='2'{:I("post.utype")==2?selected:''}>跑客</option>
        </select> &nbsp;&nbsp;
        姓名：<input type="text" name="name" style="width: 100px;" value="{$formget.name}">
        电话：<input type="text" name="mobile" style="width: 100px;" value="{$formget.mobile}">
        时间：
        <input type="text" name="start_time" class="js-date" value="{$formget.start_time|default=''}" style="width: 80px;" autocomplete="off">-
        <input type="text" class="js-date" name="end_time" value="{$formget.end_time}" style="width: 80px;" autocomplete="off"> &nbsp; &nbsp;
        &nbsp;&nbsp;

        <input type="submit" class="btn btn-primary" value="搜索" />
    </form>
    <form method="post" class="js-ajax-form">
       <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th align="center">序号</th>
                <th>类别</th>
                <th>姓名</th>
                <th>电话</th>
                <th>类型</th>
                <th>时间</th>
                <th>金额</th>
                <th>余额</th>
                <th width="350px">变动说明</th>
            </tr>
            </thead>
            <tbody>
            <php>
                $utype = array('1'=>'用户','2'=>'跑客');
            </php>
            <foreach name="datas" item="vo" key="k">
                <tr>
                    <td align="center">{$k+1}</td>
                    <td>{$utype[$vo[utype]]}</td>
                    <td>{$vo[name]}</td>
                    <td>{$vo.mobile}</td>
                    <td>{$vo[utype]|get_purse_type=$vo[purse_type]}</td>
                    <td>{$vo.change_time}</td>
                    <td>{$vo.balance_amount}</td>
                    <td>{$vo[sum_amount]}</td>
                    <td>{$vo[change_remark]}</td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <if condition="empty($datas)">
            <div style="padding: 30px;text-align: center;color: #999999">
                <i class="fa fa-database" style="font-size: 38px"></i><br />
                暂无数据
            </div>
        </if>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>

</body>
</html>